<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      margin: 50px auto;
      width: 200px;
      height: 200px;
      background-image: url(../12_hires.png);
      background-size: cover;
      position: relative;
    }



    /* 如果继承宽高宽高属性的话就没必要用定位，如果没有继承宽高属性， 需要用定位来做 */
    div:before {
      content: "";
      background-image: inherit;
      background-size: cover;
      /* width: inherit;
      height: inherit; */
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      bottom: -100%;
      transform: rotateX(180deg);
    }

    /* 
    div:after {
      content: "";
      position: absolute;
      width: 200px;
      height: 200px;
      bottom: -200px;
      background: linear-gradient(0deg, rgba(255, 255, 255, 1)0%, rgba(255, 255, 255, 0)100%);
      z-index: 2;
      background-size: cover;

    } */
  </style>
</head>

<body>
  <div></div>
</body>

</html>